2 class CollationFaTest
extends MediaWikiTestCase
{
5 * The ordering is a weird hack designed to work only with a very
6 * specific version of libicu, and as such can't really be unit tested
7 * against a random version of libicu
11 * @dataProvider provideGetFirstLetter
13 public function testGetFirstLetter( $letter, $str ) {
14 $coll = new CollationFa
;
15 $this->assertEquals( $letter, $coll->getFirstLetter( $str ), $str );
18 public function provideGetFirstLetter() {
40 [ "\xd8\xa7", "\xd8\xa7Foo" ],
41 [ "\xd9\x88", "\xd9\x88Foo" ],
42 [ "\xd9\xb2", "\xd9\xb2Foo" ],
43 [ "\xd9\xb3", "\xd9\xb3Foo" ],